package cn.kgc.vueebook3.service.impl;

import cn.kgc.vueebook3.mapper.CategoryMapper;
import cn.kgc.vueebook3.pojo.Category;
import cn.kgc.vueebook3.service.CategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService{
    @Resource
    CategoryMapper categoryMapper;

    @Override
    public List<Category> selectAll() {
        List<Category> categoryList=categoryMapper.selectByExample(null);
        return categoryList;
    }
}
